package org.hydrakyoufeng.stuplatform.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * 用户注册DTO
 */
@Data
public class UserLogonDTO {


    @NotBlank(message="手机号码不能为空")
    @Pattern(regexp="^1\\d{10}$",message = "手机号码格式不正确")
    private String mobile;

    @NotBlank(message="密码不能为空")
    @Length(min = 32,max = 32,message = "密码必须是md5加密值")
    private String password;

    /**
     * 密码盐
     */
    private String salt;

}
